home *** CD-ROM | disk | FTP | other *** search
- #include <conio.h>
- #include <Wstr.h>
- #include <WFile.h>
-
- // compute and return the amount of free disk space
- // put commas in the number so that it's easy to see how many megs there are
-
- int main(int argc, char* argv[])
- {
- long Space;
- if (argc>1) Space=DiskSpace(argv[1][0]);
- else Space=DiskSpace();
- cputs(Form("#,###,###,###",Space*1024)+" bytes free");
- return 0;
- }
-